package com.taskflow;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@MapperScan("com.taskflow.mapper")
public class TaskFlowApplication {

    public static void main(String[] args) {
        // 设置系统属性以解决SQL Server 2008的TLS协议版本不匹配问题
        System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
        System.setProperty("jdk.tls.client.protocols", "TLSv1,TLSv1.1,TLSv1.2");
        System.setProperty("jsse.enableSNIExtension", "false");
        System.setProperty("sun.security.ssl.allowUnsafeRenegotiation", "true");
        
        SpringApplication.run(TaskFlowApplication.class, args);
        System.out.println("===============================================");
        System.out.println("关单任务管理平台启动成功！");
        System.out.println("访问地址: http://localhost:8080/api");
        System.out.println("===============================================");
    }
}